/* eslint-disable */
// @ts-ignore
import request from '@/utils/request';
import { CustomRequestOptions } from '@/interceptors/request';

import * as API from './types';

/** 攻略分页 GET /tourism/client/c/wxstrategy/getstrategy */
export async function pageUsingGet3({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.pageUsingGET3Params;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultPageStrategy_>(
    '/tourism/client/c/wxstrategy/getstrategy',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 攻略详情 GET /tourism/client/c/wxstrategy/getstrategyinfo */
export async function getStrategyInfoUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.getStrategyInfoUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultStrategy_>(
    '/tourism/client/c/wxstrategy/getstrategyinfo',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 是否点赞 GET /tourism/client/c/wxstrategy/isuserlike */
export async function isUserLikeUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.isUserLikeUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultBoolean_>(
    '/tourism/client/c/wxstrategy/isuserlike',
    {
      method: 'GET',
      params: {
        ...params,
      },
      ...(options || {}),
    }
  );
}

/** 点赞 GET /tourism/client/c/wxstrategy/like */
export async function likeUsingGet({
  params,
  options,
}: {
  // 叠加生成的Param类型 (非body参数openapi默认没有生成对象)
  params: API.likeUsingGETParams;
  options?: CustomRequestOptions;
}) {
  return request<API.CommonResultString_>('/tourism/client/c/wxstrategy/like', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}
